home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2004 July / My Disc.iso / patch / UT2004 / ut2004-winpatch3236.exe / UT2004-Patch / System / XGame.u / xPawn_xRosterEntry_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-06-11  |  2.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 67 22 63 6c 61 73 73 20 |........|g"class |
|00000010| 78 52 6f 73 74 65 72 45 | 6e 74 72 79 20 65 78 74 |xRosterE|ntry ext|
|00000020| 65 6e 64 73 20 52 6f 73 | 74 65 72 45 6e 74 72 79 |ends Ros|terEntry|
|00000030| 0d 0a 09 20 20 20 20 64 | 65 70 65 6e 64 73 4f 6e |... d|ependsOn|
|00000040| 28 78 55 74 69 6c 29 20 | 74 72 61 6e 73 69 65 6e |(xUtil) |transien|
|00000050| 74 3b 0d 0a 0d 0a 2f 2f | 20 46 49 58 4d 45 20 2d |t;....//| FIXME -|
|00000060| 20 78 52 6f 73 74 65 72 | 45 6e 74 72 79 20 69 73 | xRoster|Entry is|
|00000070| 20 74 72 61 6e 73 69 65 | 6e 74 20 61 73 20 71 75 | transie|nt as qu|
|00000080| 69 63 6b 20 66 69 78 20 | 66 6f 72 20 73 61 76 65 |ick fix |for save|
|00000090| 20 67 61 6d 65 73 2e 20 | 20 52 65 61 6c 6c 79 20 | games. | Really |
|000000a0| 73 68 6f 75 6c 64 20 63 | 68 61 6e 67 65 20 6e 65 |should c|hange ne|
|000000b0| 77 28 4e 6f 6e 65 29 20 | 62 65 6c 6f 77 20 74 6f |w(None) |below to|
|000000c0| 20 6e 65 77 28 78 4c 65 | 76 65 6c 29 2c 0d 0a 2f | new(xLe|vel),../|
|000000d0| 2f 20 62 75 74 20 6e 6f | 20 65 61 73 79 20 77 61 |/ but no| easy wa|
|000000e0| 79 20 74 6f 20 64 6f 20 | 74 68 61 74 20 77 69 74 |y to do |that wit|
|000000f0| 68 6f 75 74 20 62 72 65 | 61 6b 69 6e 67 20 63 6f |hout bre|aking co|
|00000100| 6d 70 61 74 69 62 69 6c | 69 74 79 0d 0a 0d 0a 76 |mpatibil|ity....v|
|00000110| 61 72 28 29 20 78 55 74 | 69 6c 2e 50 6c 61 79 65 |ar() xUt|il.Playe|
|00000120| 72 52 65 63 6f 72 64 20 | 50 6c 72 50 72 6f 66 69 |rRecord |PlrProfi|
|00000130| 6c 65 3b 0d 0a 0d 0a 73 | 74 61 74 69 63 20 66 75 |le;....s|tatic fu|
|00000140| 6e 63 74 69 6f 6e 20 78 | 52 6f 73 74 65 72 45 6e |nction x|RosterEn|
|00000150| 74 72 79 20 43 72 65 61 | 74 65 52 6f 73 74 65 72 |try Crea|teRoster|
|00000160| 45 6e 74 72 79 28 69 6e | 74 20 70 72 49 64 78 29 |Entry(in|t prIdx)|
|00000170| 0d 0a 7b 0d 0a 20 20 20 | 20 6c 6f 63 61 6c 20 78 |..{.. | local x|
|00000180| 52 6f 73 74 65 72 45 6e | 74 72 79 20 78 72 65 3b |RosterEn|try xre;|
|00000190| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 78 55 74 69 |.. lo|cal xUti|
|000001a0| 6c 2e 50 6c 61 79 65 72 | 52 65 63 6f 72 64 20 70 |l.Player|Record p|
|000001b0| 72 3b 0d 0a 0d 0a 20 20 | 20 20 70 72 20 3d 20 63 |r;.... | pr = c|
|000001c0| 6c 61 73 73 27 78 55 74 | 69 6c 27 2e 73 74 61 74 |lass'xUt|il'.stat|
|000001d0| 69 63 2e 47 65 74 50 6c | 61 79 65 72 52 65 63 6f |ic.GetPl|ayerReco|
|000001e0| 72 64 28 70 72 49 64 78 | 29 3b 0d 0a 0d 0a 20 20 |rd(prIdx|);.... |
|000001f0| 20 20 78 72 65 20 3d 20 | 6e 65 77 28 4e 6f 6e 65 | xre = |new(None|
|00000200| 29 20 63 6c 61 73 73 27 | 78 52 6f 73 74 65 72 45 |) class'|xRosterE|
|00000210| 6e 74 72 79 27 3b 0d 0a | 20 20 20 20 78 72 65 2e |ntry';..| xre.|
|00000220| 50 6c 61 79 65 72 4e 61 | 6d 65 20 3d 20 70 72 2e |PlayerNa|me = pr.|
|00000230| 44 65 66 61 75 6c 74 4e | 61 6d 65 3b 0d 0a 20 20 |DefaultN|ame;.. |
|00000240| 20 20 78 72 65 2e 50 61 | 77 6e 43 6c 61 73 73 4e | xre.Pa|wnClassN|
|00000250| 61 6d 65 20 3d 20 22 78 | 47 61 6d 65 2e 78 50 61 |ame = "x|Game.xPa|
|00000260| 77 6e 22 3b 20 0d 0a 20 | 20 20 20 78 72 65 2e 50 |wn"; .. | xre.P|
|00000270| 6c 72 50 72 6f 66 69 6c | 65 20 3d 20 70 72 3b 0d |lrProfil|e = pr;.|
|00000280| 0a 20 20 20 20 78 72 65 | 2e 49 6e 69 74 28 29 3b |. xre|.Init();|
|00000290| 0d 0a 0d 0a 20 20 20 20 | 72 65 74 75 72 6e 20 78 |.... |return x|
|000002a0| 72 65 3b 0d 0a 7d 0d 0a | 0d 0a 73 74 61 74 69 63 |re;..}..|..static|
|000002b0| 20 66 75 6e 63 74 69 6f | 6e 20 78 52 6f 73 74 65 | functio|n xRoste|
|000002c0| 72 45 6e 74 72 79 20 43 | 72 65 61 74 65 52 6f 73 |rEntry C|reateRos|
|000002d0| 74 65 72 45 6e 74 72 79 | 43 68 61 72 61 63 74 65 |terEntry|Characte|
|000002e0| 72 28 73 74 72 69 6e 67 | 20 43 68 61 72 4e 61 6d |r(string| CharNam|
|000002f0| 65 29 0d 0a 7b 0d 0a 20 | 20 20 20 6c 6f 63 61 6c |e)..{.. | local|
|00000300| 20 78 52 6f 73 74 65 72 | 45 6e 74 72 79 20 78 72 | xRoster|Entry xr|
|00000310| 65 3b 0d 0a 20 20 20 20 | 6c 6f 63 61 6c 20 78 55 |e;.. |local xU|
|00000320| 74 69 6c 2e 50 6c 61 79 | 65 72 52 65 63 6f 72 64 |til.Play|erRecord|
|00000330| 20 70 72 3b 0d 0a 0d 0a | 20 20 20 20 70 72 20 3d | pr;....| pr =|
|00000340| 20 63 6c 61 73 73 27 78 | 55 74 69 6c 27 2e 73 74 | class'x|Util'.st|
|00000350| 61 74 69 63 2e 46 69 6e | 64 50 6c 61 79 65 72 52 |atic.Fin|dPlayerR|
|00000360| 65 63 6f 72 64 28 43 68 | 61 72 4e 61 6d 65 29 3b |ecord(Ch|arName);|
|00000370| 0d 0a 0d 0a 20 20 20 20 | 78 72 65 20 3d 20 6e 65 |.... |xre = ne|
|00000380| 77 28 4e 6f 6e 65 29 20 | 63 6c 61 73 73 27 78 52 |w(None) |class'xR|
|00000390| 6f 73 74 65 72 45 6e 74 | 72 79 27 3b 0d 0a 20 20 |osterEnt|ry';.. |
|000003a0| 20 20 78 72 65 2e 50 6c | 61 79 65 72 4e 61 6d 65 | xre.Pl|ayerName|
|000003b0| 20 3d 20 70 72 2e 44 65 | 66 61 75 6c 74 4e 61 6d | = pr.De|faultNam|
|000003c0| 65 3b 0d 0a 20 20 20 20 | 78 72 65 2e 50 61 77 6e |e;.. |xre.Pawn|
|000003d0| 43 6c 61 73 73 4e 61 6d | 65 20 3d 20 22 78 47 61 |ClassNam|e = "xGa|
|000003e0| 6d 65 2e 78 50 61 77 6e | 22 3b 20 0d 0a 20 20 20 |me.xPawn|"; .. |
|000003f0| 20 78 72 65 2e 50 6c 72 | 50 72 6f 66 69 6c 65 20 | xre.Plr|Profile |
|00000400| 3d 20 70 72 3b 0d 0a 20 | 20 20 20 78 72 65 2e 49 |= pr;.. | xre.I|
|00000410| 6e 69 74 28 29 3b 0d 0a | 0d 0a 20 20 20 20 72 65 |nit();..|.. re|
|00000420| 74 75 72 6e 20 78 72 65 | 3b 0d 0a 7d 0d 0a 0d 0a |turn xre|;..}....|
|00000430| 66 75 6e 63 74 69 6f 6e | 20 50 72 65 63 61 63 68 |function| Precach|
|00000440| 65 52 6f 73 74 65 72 46 | 6f 72 28 55 6e 72 65 61 |eRosterF|or(Unrea|
|00000450| 6c 54 65 61 6d 49 6e 66 | 6f 20 54 29 0d 0a 7b 0d |lTeamInf|o T)..{.|
|00000460| 0a 20 20 20 20 20 69 66 | 20 28 20 50 6c 72 50 72 |. if| ( PlrPr|
|00000470| 6f 66 69 6c 65 2e 53 70 | 65 63 69 65 73 20 3d 3d |ofile.Sp|ecies ==|
|00000480| 20 4e 6f 6e 65 20 29 0d | 0a 20 20 20 20 7b 0d 0a | None ).|. {..|
|00000490| 09 09 77 61 72 6e 28 22 | 43 6f 75 6c 64 20 6e 6f |..warn("|Could no|
|000004a0| 74 20 6c 6f 61 64 20 73 | 70 65 63 69 65 73 20 22 |t load s|pecies "|
|000004b0| 24 50 6c 72 50 72 6f 66 | 69 6c 65 2e 53 70 65 63 |$PlrProf|ile.Spec|
|000004c0| 69 65 73 24 22 20 66 6f | 72 20 22 24 50 6c 72 50 |ies$" fo|r "$PlrP|
|000004d0| 72 6f 66 69 6c 65 2e 44 | 65 66 61 75 6c 74 4e 61 |rofile.D|efaultNa|
|000004e0| 6d 65 29 3b 0d 0a 09 09 | 72 65 74 75 72 6e 3b 0d |me);....|return;.|
|000004f0| 0a 09 7d 0d 0a 0d 0a 09 | 50 6c 72 50 72 6f 66 69 |..}.....|PlrProfi|
|00000500| 6c 65 2e 53 70 65 63 69 | 65 73 2e 73 74 61 74 69 |le.Speci|es.stati|
|00000510| 63 2e 4c 6f 61 64 52 65 | 73 6f 75 72 63 65 73 28 |c.LoadRe|sources(|
|00000520| 20 50 6c 72 50 72 6f 66 | 69 6c 65 2c 20 54 2e 4c | PlrProf|ile, T.L|
|00000530| 65 76 65 6c 2c 20 4e 6f | 6e 65 2c 20 54 2e 54 65 |evel, No|ne, T.Te|
|00000540| 61 6d 49 6e 64 65 78 20 | 29 3b 0d 0a 7d 0d 0a 0d |amIndex |);..}...|
|00000550| 0a 66 75 6e 63 74 69 6f | 6e 20 49 6e 69 74 42 6f |.functio|n InitBo|
|00000560| 74 28 42 6f 74 20 42 29 | 0d 0a 7b 0d 0a 20 20 20 |t(Bot B)|..{.. |
|00000570| 20 42 2e 53 65 74 50 61 | 77 6e 43 6c 61 73 73 28 | B.SetPa|wnClass(|
|00000580| 50 61 77 6e 43 6c 61 73 | 73 4e 61 6d 65 2c 20 50 |PawnClas|sName, P|
|00000590| 6c 61 79 65 72 4e 61 6d | 65 29 3b 0d 0a 09 09 0d |layerNam|e);.....|
|000005a0| 0a 20 20 20 20 2f 2f 20 | 53 65 74 20 62 6f 74 20 |. // |Set bot |
|000005b0| 61 74 74 72 69 62 75 74 | 65 73 20 62 61 73 65 64 |attribut|es based|
|000005c0| 20 6f 6e 20 74 68 65 20 | 50 6c 61 79 65 72 52 65 | on the |PlayerRe|
|000005d0| 63 6f 72 64 0d 0a 20 20 | 20 20 43 6f 6d 62 61 74 |cord.. | Combat|
|000005e0| 53 74 79 6c 65 20 20 20 | 20 3d 20 46 43 6c 61 6d |Style | = FClam|
|000005f0| 70 28 63 6c 61 73 73 27 | 42 6f 74 27 2e 44 65 66 |p(class'|Bot'.Def|
|00000600| 61 75 6c 74 2e 43 6f 6d | 62 61 74 53 74 79 6c 65 |ault.Com|batStyle|
|00000610| 20 2b 20 66 6c 6f 61 74 | 28 50 6c 72 50 72 6f 66 | + float|(PlrProf|
|00000620| 69 6c 65 2e 43 6f 6d 62 | 61 74 53 74 79 6c 65 29 |ile.Comb|atStyle)|
|00000630| 2c 2d 31 2c 31 29 3b 20 | 20 20 20 0d 0a 20 20 20 |,-1,1); | .. |
|00000640| 20 41 67 67 72 65 73 73 | 69 76 65 6e 65 73 73 20 | Aggress|iveness |
|00000650| 3d 20 46 43 6c 61 6d 70 | 28 63 6c 61 73 73 27 42 |= FClamp|(class'B|
|00000660| 6f 74 27 2e 44 65 66 61 | 75 6c 74 2e 42 61 73 65 |ot'.Defa|ult.Base|
|00000670| 41 67 67 72 65 73 73 69 | 76 65 6e 65 73 73 20 2b |Aggressi|veness +|
|00000680| 66 6c 6f 61 74 28 50 6c | 72 50 72 6f 66 69 6c 65 |float(Pl|rProfile|
|00000690| 2e 41 67 67 72 65 73 73 | 69 76 65 6e 65 73 73 29 |.Aggress|iveness)|
|000006a0| 2c 30 2c 31 29 3b 0d 0a | 20 20 20 20 41 63 63 75 |,0,1);..| Accu|
|000006b0| 72 61 63 79 20 20 20 20 | 20 20 20 20 3d 20 46 43 |racy | = FC|
|000006c0| 6c 61 6d 70 28 66 6c 6f | 61 74 28 50 6c 72 50 72 |lamp(flo|at(PlrPr|
|000006d0| 6f 66 69 6c 65 2e 41 63 | 63 75 72 61 63 79 29 2c |ofile.Ac|curacy),|
|000006e0| 2d 34 2c 34 29 3b 0d 0a | 20 20 20 20 53 74 72 61 |-4,4);..| Stra|
|000006f0| 66 69 6e 67 41 62 69 6c | 69 74 79 20 3d 20 46 43 |fingAbil|ity = FC|
|00000700| 6c 61 6d 70 28 66 6c 6f | 61 74 28 50 6c 72 50 72 |lamp(flo|at(PlrPr|
|00000710| 6f 66 69 6c 65 2e 53 74 | 72 61 66 69 6e 67 41 62 |ofile.St|rafingAb|
|00000720| 69 6c 69 74 79 29 2c 2d | 34 2c 34 29 3b 0d 0a 20 |ility),-|4,4);.. |
|00000730| 20 20 20 54 61 63 74 69 | 63 73 20 20 20 20 20 20 | Tacti|cs |
|00000740| 20 20 20 3d 20 46 43 6c | 61 6d 70 28 66 6c 6f 61 | = FCl|amp(floa|
|00000750| 74 28 50 6c 72 50 72 6f | 66 69 6c 65 2e 54 61 63 |t(PlrPro|file.Tac|
|00000760| 74 69 63 73 29 2c 2d 34 | 2c 34 29 3b 0d 0a 20 20 |tics),-4|,4);.. |
|00000770| 20 20 52 65 61 63 74 69 | 6f 6e 54 69 6d 65 20 20 | Reacti|onTime |
|00000780| 20 20 3d 20 46 43 6c 61 | 6d 70 28 66 6c 6f 61 74 | = FCla|mp(float|
|00000790| 28 50 6c 72 50 72 6f 66 | 69 6c 65 2e 52 65 61 63 |(PlrProf|ile.Reac|
|000007a0| 74 69 6f 6e 54 69 6d 65 | 29 2c 2d 34 2c 34 29 3b |tionTime|),-4,4);|
|000007b0| 0d 0a 20 20 20 20 69 66 | 20 28 20 50 6c 72 50 72 |.. if| ( PlrPr|
|000007c0| 6f 66 69 6c 65 2e 46 61 | 76 6f 72 69 74 65 57 65 |ofile.Fa|voriteWe|
|000007d0| 61 70 6f 6e 20 3d 3d 20 | 22 22 20 29 0d 0a 09 09 |apon == |"" )....|
|000007e0| 46 61 76 6f 72 69 74 65 | 57 65 61 70 6f 6e 20 3d |Favorite|Weapon =|
|000007f0| 20 4e 6f 6e 65 3b 0d 0a | 09 65 6c 73 65 0d 0a 09 | None;..|.else...|
|00000800| 20 20 20 20 46 61 76 6f | 72 69 74 65 57 65 61 70 | Favo|riteWeap|
|00000810| 6f 6e 20 3d 20 63 6c 61 | 73 73 3c 57 65 61 70 6f |on = cla|ss<Weapo|
|00000820| 6e 3e 28 44 79 6e 61 6d | 69 63 4c 6f 61 64 4f 62 |n>(Dynam|icLoadOb|
|00000830| 6a 65 63 74 28 50 6c 72 | 50 72 6f 66 69 6c 65 2e |ject(Plr|Profile.|
|00000840| 46 61 76 6f 72 69 74 65 | 57 65 61 70 6f 6e 2c 63 |Favorite|Weapon,c|
|00000850| 6c 61 73 73 27 43 6c 61 | 73 73 27 29 29 3b 0d 0a |lass'Cla|ss'));..|
|00000860| 20 20 20 20 4a 75 6d 70 | 69 6e 65 73 73 20 3d 20 | Jump|iness = |
|00000870| 66 6c 6f 61 74 28 50 6c | 72 50 72 6f 66 69 6c 65 |float(Pl|rProfile|
|00000880| 2e 4a 75 6d 70 69 6e 65 | 73 73 29 3b 0d 0a 20 20 |.Jumpine|ss);.. |
|00000890| 20 20 0d 0a 20 20 20 09 | 53 75 70 65 72 2e 49 6e | .. .|Super.In|
|000008a0| 69 74 42 6f 74 28 42 29 | 3b 0d 0a 7d 0d 0a 0d 0a |itBot(B)|;..}....|
|000008b0| 00 | |. | |
+--------+-------------------------+-------------------------+--------+--------+